{{ define "admin/common/page_sidebar.html" }}
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
</head>
<body>
    <!--左侧导航-->
    <aside class="lyear-layout-sidebar">

        <!-- logo -->
        <div id="logo" class="sidebar-header">
            <a href="index.html"><img src="/static/ly/images/logo-sidebar.png" title="LightYear" alt="LightYear" /></a>
        </div>
        <div class="lyear-layout-sidebar-info lyear-scroll">

            <nav class="sidebar-main">
                <ul class="nav-drawer">
                    {{$isSuper := .isSuper}}
                    <li class="nav-item active"> <a class="multitabs" href="/admin/welcome"><i class="mdi mdi-home"></i> <span>后台首页</span></a> </li>
                    {{range $key,$value := .accessList}}
                        {{if eq $isSuper 1}}
                            <li class="nav-item nav-item-has-subnav">
                                <a href="javascript:void(0)"><i class="mdi mdi-palette"></i> <span>{{$value.ModuleName}}</span></a>
                                <ul class="nav nav-subnav">
                                    {{range $k,$v := $value.AccessItem}}
                                        {{if eq $v.Type 2}}
                                            <li> <a href="/admin/{{$v.Url}}" class="multitabs" target="rightMain">{{$v.ActionName}}</a></li>
                                        {{end}}
                                    {{end}}
                                </ul>
                            </li>
                        {{else}}
                            {{if eq $value.Checked true}}
                                <li class="nav-item nav-item-has-subnav">
                                    <a href="javascript:void(0)"><i class="mdi mdi-palette"></i> <span>{{$value.ModuleName}}</span></a>
                                    <ul class="nav nav-subnav">
                                        {{range $k,$v := $value.AccessItem}}
                                            {{if eq $v.Checked true}}
                                                {{if eq $v.Type 2}}
                                                    <li > <a href="/admin/{{$v.Url}}"  class="multitabs" target="rightMain">{{$v.ActionName}}</a></li>
                                                {{end}}
                                            {{end}}
                                        {{end}}
                                    </ul>
                                </li>
                            {{end}}
                        {{end}}
                    {{end}}
                </ul>
            </nav>

            <div class="sidebar-footer">
{{/*                <p class="copyright"><a target="_blank" href="http://lyear.itshubao.com">生成二维码</a> </p>*/}}
            </div>
        </div>

    </aside>
    <!--End 左侧导航-->
</body>
</html>
{{end}}